import Vue from 'vue'
import Vuex from 'vuex'
import global from './modules/global'
import index from './modules/index'
import search from './modules/search'
import cart from './modules/cart'
import user from './modules/user'
import address from './modules/address'
import order from './modules/order'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    global,
    index,
    search,
    cart,
    user,
    address,
    order
  }
})
